package com.hdphone.zljutils.inter;

import com.hdphone.zljutils.impl.ShellUtilImpl;

import java.util.List;

/**
 * @author sq
 * @date 2020/11/13
 * @describe
 */
public interface IShellUtil {

    ShellUtilImpl.CommandResult execCmd(final String command, final boolean isRooted);


    ShellUtilImpl.CommandResult execCmd(final List<String> commands, final boolean isRooted);


    ShellUtilImpl.CommandResult execCmd(final String[] commands, final boolean isRooted);


    ShellUtilImpl.CommandResult execCmd(final String command,
                                        final boolean isRooted,
                                        final boolean isNeedResultMsg);

    ShellUtilImpl.CommandResult execCmd(final List<String> commands,
                                        final boolean isRooted,
                                        final boolean isNeedResultMsg);

    ShellUtilImpl.CommandResult execCmd(final String[] commands,
                                        final boolean isRooted,
                                        final boolean isNeedResultMsg);

}
